package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;
import com.mmall.vo.ProductDetailVo;

/**
 * @Author: Czh
 * @Date: 2019/4/18  13:05
 * @Version: 1.0
 **/
public interface IProductService {

    ServerResponse saveAndUpdateProduct(Product product);

    ServerResponse setSaleStatus(Integer productId , Integer status);

    ServerResponse<ProductDetailVo> manageProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductList(int pageNum , int pageSize);

    ServerResponse<PageInfo> searchProduct(String productName , Integer productId , int pageNum , int pageSize);

    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword , Integer categoryId , Integer pageNum , Integer pageSize , String orderBy);
}
